<template>
    <div class="hy">
        <table>
            <thead>
            <th colspan="11" style="text-align: center;">道路货运经营业户调查表</th>
            </thead>
            <tbody>
            <tr>
                <td colspan="11" style="text-align: left;">一、业户基本情况</td>
            </tr>
            <tr>
                <td colspan="4">101业户管理机构行政区划代码</td>
                <td colspan="3" class="data">{{yhjbqkData[0].value}}</td>
                <td colspan="2">102业户类型	</td>
                <td colspan="3" class="data">{{yhjbqkData[1].value}}</td>
            </tr>
            <tr>
                <td colspan="4">103企业登记注册类型	</td>
                <td colspan="3" class="data">{{yhjbqkData[2].value}}</td>
                <td colspan="2">104是否法人单位	</td>
                <td colspan="3" class="data">{{yhjbqkData[3].value}}</td>
            </tr>
            <tr>
                <td colspan="4">105统一社会信用代码	</td>
                <td colspan="3" class="data">{{yhjbqkData[4].value}}</td>
                <td colspan="2">106组织机构代码	</td>
                <td colspan="3" class="data">{{yhjbqkData[5].value}}</td>
             </tr>
             <tr>
                <td colspan="4">107道路运输经营许可证字号</td>
                <td colspan="3" class="data">{{yhjbqkData[6].value}}</td>
                <td colspan="2">108是否主营交通运输	</td>
                <td colspan="3" class="data">{{yhjbqkData[7].value}}</td>
             </tr>
             <tr>
                <td colspan="8">109经营范围</td>
                <td colspan="3" class="data">{{yhjbqkData[8].value}}</td>
             </tr>
             <tr>
                <td colspan="8">110主营交通运输业务类别	</td>
                <td colspan="3" class="data">{{yhjbqkData[9].value}}</td>
             </tr>
             <tr>
                <td colspan="4">111是否隶属于企业集团	</td>
                <td colspan="3" class="data">{{yhjbqkData[10].value}}</td>
                <td colspan="2">112企业隶属关系	</td>
                <td colspan="3" class="data">{{yhjbqkData[11].value}}</td>
             </tr>
              <tr>
                <td colspan="8">113直接上级公司名称	</td>
                <td colspan="3" class="data">{{yhjbqkData[12].value}}</td>
             </tr>
             <tr>
                <td colspan="4">114单位负责人 </td>
                <td colspan="3" class="data">{{yhjbqkData[13].value}}</td>
                <td colspan="2">115统计负责人	</td>
                <td colspan="3" class="data">{{yhjbqkData[14].value}}</td>
            </tr>
             <tr>
                <td colspan="4">116联系人 </td>
                <td colspan="3" class="data">{{yhjbqkData[15].value}}</td>
                <td colspan="2">117联系电话	</td>
                <td colspan="3" class="data">{{yhjbqkData[16].value}}</td>
            </tr>
            <tr>
                <td colspan="11" style="text-align: left;">二、运力情况</td>
            </tr>
            <tr>
                <td>指标名称</td>
                <td>代码</td>
                <td>车辆数（辆）</td>
                <td colspan="4">标记吨位（吨）</td>
                <td colspan="2">总质量（吨）</td>
                <td colspan="2">集装箱箱位（TEU）</td>
            </tr>
            <tr v-for="(item,i) in ylqkData" :key="item.code">
                <td style="text-align: left;">{{item.zbmc}}</td>
                <td>{{item.code}}</td>
                <td class="data">{{item.cls}}</td>
                <td class="data" colspan="4">{{item.bjdw}}</td>
                <td class="data" colspan="2">{{item.zzl}}</td>
                <td class="data" colspan="2">{{item.jzxxw}}</td>
            </tr>
            <tr style="text-align: left;">
                <td colspan="11">三、运输情况</td>
            </tr>
            <tr>
                <td>指标名称</td>
                <td>代码</td>
                <td>趟次数（个）</td>
                <td colspan="4">货运量（吨）</td>
                <td colspan="2">货物周转量（吨公里）</td>
                <td colspan="2">平均运距（公里）</td>
            </tr>
            <tr v-for="(item,i) in ysqkData" :key="item.code">
                <td style="text-align: left;">{{item.zbmc}}</td>
                <td>{{item.code}}</td>
                <td class="data">{{item.tcs}}</td>
                <td class="data" colspan="4">{{item.hyl}}</td>
                <td class="data" colspan="2">{{item.hwzzl}}</td>
                <td class="data" colspan="2">{{item.pjyj}}</td>
            </tr>
            <tr>
                <td colspan="11" style="text-align: left;">四、财务情况和能耗情况（财务情况请按9月财务报表填写，能耗情况请填写9月全部车辆的数据</td>
            </tr>

            <tr>
                <td>指标名称</td>
                <td>代码</td>
                <td>数量（万元）</td>
                <td colspan="7" rowspan="8">
                    <table class="qiantao">
                        <tr rowspan="5">
                            <td>指标名称</td>
                            <td>代码</td>
                            <td>车辆数（辆）</td>
                            <td>行驶里程（公里）</td>
                            <td>能耗（吨标煤/升/立方米/千克/千瓦时）</td>

                        </tr>
                        <tr v-for="(item,i) in nhqkTable" :key="item.code">
                            <td style="text-align: left;">{{item.zbmc}}</td>
                            <td>{{item.code}}</td>
                            <td class="data">{{item.cls}}</td>
                            <td class="data">{{item.xslc}}</td>
                            <td class="data">{{item.nh}}</td>
                        </tr>
                    </table>

                </td>
            </tr>
            <tr v-for="(item,i) in cwqkTable" :key="item.code">
                <td style="text-align: left;">{{item.zbmc}}</td>
                <td>{{item.code}}</td>
                <td class="data">{{item.sl}}</td>
            </tr>
            <tr style="text-align: left;">
                <td colspan="11">四、补充资料</td>
            </tr>
            <tr>
                <td colspan="8">货运车辆从事运输的主要区</td>
                <td colspan="5" class="data">{{bczlData[0].value}}</td>
             </tr>
             <tr>
                <td colspan="8">该类运输的趟次数在全部运输中占比约为(%)</td>
                <td colspan="5" class="data">{{bczlData[1].value}}</td>
             </tr>
             <tr>
                <td colspan="8">集装箱箱运量(TEU)</td>
                <td colspan="5" class="data">{{bczlData[2].value}}</td>
             </tr>
             <tr>
                <td colspan="8">其他燃料类型</td>
                <td colspan="5" class="data">{{bczlData[3].value}}</td>
             </tr>
            </tbody>
        </table>
    </div>
</template>

<script>

    export default {
        data() {
            return {
                bczlData:
                    [{
                        zbmc: '1',
                        value: ''
                    },{
                        zbmc: '2',
                        value: ''
                    },{
                        zbmc: '3',
                        value: ''
                    },{
                        zbmc: '4',
                        value: ''
                    }],

                yhjbqkData:
                    [{
                        zbmc: '101业户管理机构行政区代码',
                        value: ''
                    }, {
                        zbmc: '102业户类型',
                        value: ''
                    }, {
                        zbmc: '103企业登陆注册类型',
                        value: ''
                    }, {
                        zbmc: '104是否法人单位',
                        value: ''
                    }, {
                        zbmc: '105统一社会信用代码',
                        value: ''
                    }, {
                        zbmc: '106组织机构代码',
                        value: ''
                    }, {
                        zbmc: '107道路运输经营许可证字号',
                        value: ''
                    }, {
                        zbmc: '108是否主营交通运输',
                        value: ''
                    }, {
                        zbmc: '109经营范围',
                        value: ''
                    }, {
                        zbmc: '110主营交通运输业务类别',
                        value: ''
                    }, {
                        zbmc: '111是否隶属于企业集团',
                        value: ''
                    }, {
                        zbmc: '112企业隶属关系',
                        value: ''
                    }, {
                        zbmc: '113直接上级公司名称',
                        value: ''
                    }, {
                        zbmc: '114单位负责人',
                        value: ''
                    }, {
                        zbmc: '115统计负责人',
                        value: ''
                    }, {
                        zbmc: '116联系人',
                        value: ''
                    }, {
                        zbmc: '117联系电话',
                        value: ''
                    }
                    ],
                ylqkData:
                    [{
                        zbmc: '总计',
                        code: '201',
                        cls: '',
                        bjdw: '',
                        zzl: '',
                        jzxxw: ''
                    }, {
                        zbmc: '按车辆类型分',
                    }, {
                        zbmc: '其中:牵引车',
                        code: '202',
                        cls: '',
                        bjdw: '',
                        zzl: '',
                        jzxxw: ''
                    }, {
                        zbmc: '挂车',
                        code: '203',
                        cls: '',
                        bjdw: '',
                        zzl: '',
                        jzxxw: ''
                    }, {
                        zbmc: '集装箱车',
                        code: '204',
                        cls: '',
                        bjdw: '',
                        zzl: '',
                        jzxxw: ''
                    }, {
                        zbmc: '冷藏保温车',
                        code: '205',
                        cls: '',
                        bjdw: '',
                        zzl: '',
                        jzxxw: ''
                    }, {
                        zbmc: '其他',
                        code: '206',
                        cls: '',
                        bjdw: '',
                        zzl: '',
                        jzxxw: ''
                    }],
                ysqkData:
                    [{
                        zbmc: '总计:',
                        code: '301',
                        tcs: '',
                        hyl: '',
                        hwzzl: '',
                        pjyj: '',
                    }, {
                        zbmc: '其中:集装箱',
                        code: '302',
                        tcs: '',
                        hyl: '',
                        hwzzl: '',
                        pjyj: '',
                    }, {
                        zbmc: '冷藏保温品',
                        code: '303',
                        tcs: '',
                        hyl: '',
                        hwzzl: '',
                        pjyj: '',
                    }, {
                        zbmc: '危险货物',
                        code: '304',
                        tcs: '',
                        hyl: '',
                        hwzzl: '',
                        pjyj: '',
                    }, {
                        zbmc: '按货类分',
                    }, {
                        zbmc: '煤炭及制品',
                        code: '305',
                        tcs: '',
                        hyl: '',
                        hwzzl: '',
                        pjyj: '',
                    }, {
                        zbmc: '金属矿石',
                        code: '306',
                        tcs: '',
                        hyl: '',
                        hwzzl: '',
                        pjyj: '',
                    }, {
                        zbmc: '矿建材料及水泥',
                        code: '307',
                        tcs: '',
                        hyl: '',
                        hwzzl: '',
                        pjyj: '',
                    }, {
                        zbmc: '机械设备电器',
                        code: '308',
                        tcs: '',
                        hyl: '',
                        hwzzl: '',
                        pjyj: '',
                    }, {
                        zbmc: '轻工医药产品',
                        code: '309',
                        tcs: '',
                        hyl: '',
                        hwzzl: '',
                        pjyj: '',
                    }, {
                        zbmc: '鲜活农产品',
                        code: '310',
                        tcs: '',
                        hyl: '',
                        hwzzl: '',
                        pjyj: '',
                    }, {
                        zbmc: '其他',
                        code: '311',
                        tcs: '',
                        hyl: '',
                        hwzzl: '',
                        pjyj: '',
                    }],
                cwqkTable:
                    [
                        {
                            zbmc: '资产总计:',
                            code: '401',
                            sl: '',
                        }, {
                        zbmc: '负载合伙',
                        code: '402',
                        sl: '',
                    }, {
                        zbmc: '营业收入',
                        code: '403',
                        sl: '',
                    }, {
                        zbmc: '其中:运输收入',
                        code: '404',
                        sl: '',
                    }, {
                        zbmc: '营业成本',
                        code: '405',
                        sl: '',
                    }, {
                        zbmc: '其中:营业收入',
                        code: '406',
                        sl: '',
                    }, {
                        zbmc: '营业利润',
                        code: '407',
                        sl: '',
                    },
                    ],
                nhqkTable:
                    [{
                        zbmc: '总计:',
                        code: '408',
                        cls: '',
                        xslc: '',
                        nh: '',
                    }, {
                        zbmc: '按燃料类型分',
                    }, {
                        zbmc: '其中:汽油车',
                        code: '409',
                        cls: '',
                        xslc: '',
                        nh: '',
                    }, {
                        zbmc: '柴油车',
                        code: '410',
                        cls: '',
                        xslc: '',
                        nh: '',
                    }, {
                        zbmc: '压缩天然气车',
                        code: '411',
                        cls: '',
                        xslc: '',
                        nh: '',
                    }, {
                        zbmc: '液化天然气车',
                        code: '412',
                        cls: '',
                        xslc: '',
                        nh: '',
                    }, {
                        zbmc: '纯电动车',
                        code: '413',
                        cls: '',
                        xslc: '',
                        nh: '',
                    },
                        {
                            zbmc: '其他',
                            code: '414',
                            cls: '',
                            xslc: '',
                            nh: '',
                        },
                    ],
            }
        },

        mounted() {
            this.hp();
            this.getDate();
        },
        destroyed(){
            this.sp();
        },
        methods: {
            getBaseDate(){
                console.log(this.yhjbqkData);
            },
            hp() {
                plus.screen.lockOrientation('landscape-primary');//横屏正方向
            },
            sp() {
                plus.screen.lockOrientation('portrait-secondary');//竖屏正方向
            },
            getDate() {
                this.axios.post('http://zxdc.catsic.com:9090/sampling/fill/getyhdetail', {
                    'data': {
                        "recid": localStorage.getItem('id'),
                    }
                }, {
                    'headers': {
                        'Content-Type': 'application/json',
                        'mobileHeader': '{"sessionId":' + localStorage.getItem('sessionId') + '}'
                    }
                }).then(result => {
                    console.log(result);
                    if (result.data.status == "1000") {
                        this.yhjbqkData[0].value = "111"
                        let data = result.data.data.yhDetail;
                        //1.业户基本情况
                        this.yhjbqkData[0].value =  data.yhdcb2019080;
                        
                        this.yhjbqkData[1].value = data.yhdcb2019081==1?'企业':'个体户';     
                        console.log(data.yhdcb2019082+"data.yhdcb2019082");                 
                        this.yhjbqkData[2].value = this.getQyTypeName(data.yhdcb2019082);                      
                        this.yhjbqkData[3].value = data.yhdcb2019083==1?'是':'否';                      
                        this.yhjbqkData[4].value = data.yhdcb2019084;
                        this.yhjbqkData[5].value = data.yhdcb2019085;
                        this.yhjbqkData[6].value = data.yhdcb2019086;
                        this.yhjbqkData[7].value = data.yhdcb2019094==1?'是':'否';

                        this.yhjbqkData[9].value =  this.getYwTypeName(data.yhdcb2019088);
                        this.yhjbqkData[10].value = data.yhdcb2019089==1?'是':'否';
                        this.yhjbqkData[11].value = this.getLsgxName(data.yhdcb2019090);
                        this.yhjbqkData[12].value = data.yhdcb2019091;
                        this.yhjbqkData[13].value = data.yhdcb2019099;//单位负责人
                        this.yhjbqkData[14].value = data.yhdcb2019100;//统计负责人
                        this.yhjbqkData[15].value = data.yhdcb2019092;
                        this.yhjbqkData[16].value = data.yhdcb2019093;

                        if(data.yhdcb2019081 == 1 && data.yhdcb2019117 != undefined){
                            console.log(data.yhdcb2019117+"data.yhdcb2019117");
                            if (data.yhdcb2019117.indexOf(";") >= 0) {
                                let list = data.yhdcb2019117.split(';');
                                let str='';
                                for(let i=0;i<list.length;i++){
                                      str +=   this.getYwTypeName(list[i])+";";
                                }
                                this.yhjbqkData[8].value = str;
                            } else {
                                if(data.yhdcb2019117 != '' && data.yhdcb2019117 != '0'){
                                    this.yhjbqkData[8].value = this.getYwTypeName(data.yhdcb2019117);//企业经营范围
                                }
                            }
                            
                        } else if(data.yhdcb2019081 == 175 && data.yhdcb2019087 != undefined) {
                            if (data.yhdcb2019087.indexOf(";") >= 0) {
                                let list = data.yhdcb2019087.split(';');
                                let str='';
                                for(let i=0;i<list.length;i++){
                                      str +=   this.getGtjyfwName(list[i])+";";
                                }
                                this.yhjbqkData[8].value = str;
                            } else {
                                if(data.yhdcb2019087 != '' && data.yhdcb2019087 != '0'){
                                    this.yhjbqkData[8].value = this.getGtjyfwName(data.yhdcb2019087);//企业经营范围
                                }
                            }
                        }

                        
                        //2:运力情况
                        //总计
                        this.ylqkData[0].cls = data.yhdcb2019001;
                        this.ylqkData[0].bjdw = data.yhdcb2019010;
                        this.ylqkData[0].zzl = data.yhdcb2019014;
                        this.ylqkData[0].jzxxw = data.yhdcb2019017;
                        //其中：牵引车
                        this.ylqkData[2].cls = data.yhdcb2019002;
                        this.ylqkData[2].bjdw = "-";
                        this.ylqkData[2].zzl = data.yHDCB2019104;
                        this.ylqkData[2].jzxxw = "-";
                        //挂车
                        this.ylqkData[3].cls = data.yhdcb2019003;
                        this.ylqkData[3].bjdw = data.yhdcb2019011;
                        this.ylqkData[3].zzl = data.yHDCB20190118;
                        this.ylqkData[3].jzxxw = data.yhdcb2019018;
                        //集装箱车
                        this.ylqkData[4].cls = data.yhdcb2019004;
                        this.ylqkData[4].bjdw = data.yhdcb2019012;
                        this.ylqkData[4].zzl = data.yhdcb2019015;
                        this.ylqkData[4].jzxxw = data.yhdcb2019019;
                        //冷藏保温车
                        this.ylqkData[5].cls = data.yhdcb2019005;
                        this.ylqkData[5].bjdw = data.yhdcb2019013;
                        this.ylqkData[5].zzl = data.yhdcb2019016;
                        this.ylqkData[5].jzxxw = "-";
                        //其他
                        this.ylqkData[6].cls = data.yHDCB2019106;
                        this.ylqkData[6].bjdw = data.yHDCB2019107;
                        this.ylqkData[6].zzl = data.yHDCB2019108;
                        this.ylqkData[6].jzxxw = data.yHDCB2019109;
                        //3:运输情况
                        //总计
                        this.ysqkData[0].tcs = data.yHDCB2019051;
                        this.ysqkData[0].hyl = data.yhdcb2019020;
                        this.ysqkData[0].hwzzl = data.yhdcb2019030;
                        this.ysqkData[0].pjyj = data.yHDCB2019055;
                        //其中：集装箱
                        this.ysqkData[1].tcs = data.yHDCB2019052;
                        this.ysqkData[1].hyl = data.yhdcb2019021;
                        this.ysqkData[1].hwzzl = data.yhdcb2019031;
                        this.ysqkData[1].pjyj = data.yHDCB2019056;
                        //冷藏保温品
                        this.ysqkData[2].tcs = data.yHDCB2019053;
                        this.ysqkData[2].hyl = data.yhdcb2019022;
                        this.ysqkData[2].hwzzl = data.yhdcb2019032;
                        this.ysqkData[2].pjyj = data.yHDCB2019057;
                        //危险货物
                        this.ysqkData[3].tcs = data.yHDCB2019054;
                        this.ysqkData[3].hyl = data.yhdcb2019023;
                        this.ysqkData[3].hwzzl = data.yhdcb2019033;
                        this.ysqkData[3].pjyj = data.yHDCB2019058;
                        //其中：煤炭及制品
                        this.ysqkData[5].tcs = "-";
                        this.ysqkData[5].hyl = data.yhdcb2019024;
                        this.ysqkData[5].hwzzl = data.yhdcb2019034;
                        this.ysqkData[5].pjyj = data.yHDCB2019059;
                        //金属矿石
                        this.ysqkData[6].tcs = "-";
                        this.ysqkData[6].hyl = data.yhdcb2019025;
                        this.ysqkData[6].hwzzl = data.yhdcb2019035;
                        this.ysqkData[6].pjyj = data.yHDCB2019060;
                        //矿建材料及水泥
                        this.ysqkData[7].tcs = "-";
                        this.ysqkData[7].hyl = data.yhdcb2019026;
                        this.ysqkData[7].hwzzl = data.yhdcb2019036;
                        this.ysqkData[7].pjyj = data.yHDCB2019061;
                        //机械设备电器
                        this.ysqkData[8].tcs = "-";
                        this.ysqkData[8].hyl = data.yhdcb2019027;
                        this.ysqkData[8].hwzzl = data.yhdcb2019037;
                        this.ysqkData[8].pjyj = data.yHDCB2019062;
                        //轻工医药产品
                        this.ysqkData[9].tcs = "-";
                        this.ysqkData[9].hyl = data.yhdcb2019028;
                        this.ysqkData[9].hwzzl = data.yhdcb2019038;
                        this.ysqkData[9].pjyj = data.yHDCB2019063;
                        //鲜活农产品
                        this.ysqkData[10].tcs = "-";
                        this.ysqkData[10].hyl = data.yhdcb2019029;
                        this.ysqkData[10].hwzzl = data.yhdcb2019039;
                        this.ysqkData[10].pjyj = data.yHDCB2019064;
                        //其他
                        this.ysqkData[11].tcs = "-";
                        this.ysqkData[11].hyl = data.yHDCB2019110;
                        this.ysqkData[11].hwzzl = data.yHDCB2019111;
                        this.ysqkData[11].pjyj = data.yHDCB2019112;

                        //4.财务状况
                        //资产总计：
                        this.cwqkTable[0].sl = data.yhdcb2019044;
                        //负债合计
                        this.cwqkTable[1].sl = data.yhdcb2019045;
                        //营业收入
                        this.cwqkTable[2].sl = data.yhdcb2019046;
                        //其中：运输收入
                        this.cwqkTable[3].sl = data.yhdcb2019047;
                        //营业成本
                        this.cwqkTable[4].sl = data.yhdcb2019048;
                        //其中：营业收入
                        this.cwqkTable[5].sl = data.yhdcb2019049;
                        //营业利润
                        this.cwqkTable[6].sl = data.yhdcb2019050;

                        //5.能耗情况
                        //总计
                        this.nhqkTable[0].cls = data.yHDCB2019077;
                        this.nhqkTable[0].xslc = data.yHDCB2019065;
                        this.nhqkTable[0].nh = data.yHDCB2019071;
                        //其中：汽油车
                        this.nhqkTable[2].cls = data.yhdcb2019006;
                        this.nhqkTable[2].xslc = data.yHDCB2019066;
                        this.nhqkTable[2].nh = data.yHDCB2019072;
                        //柴油车
                        this.nhqkTable[3].cls = data.yhdcb2019007;
                        this.nhqkTable[3].xslc = data.yHDCB2019067;
                        this.nhqkTable[3].nh = data.yHDCB2019073;
                        //压缩天然气车
                        this.nhqkTable[4].cls = data.yhdcb2019008;
                        this.nhqkTable[4].xslc = data.yHDCB2019068;
                        this.nhqkTable[4].nh = data.yHDCB2019074;
                        //液化天然气车
                        this.nhqkTable[5].cls = data.yHDCB2019078;
                        this.nhqkTable[5].xslc = data.yHDCB2019069;
                        this.nhqkTable[5].nh = data.yHDCB2019075;
                        //纯电动
                        this.nhqkTable[6].cls = data.yhdcb2019009;
                        this.nhqkTable[6].xslc = data.yHDCB2019070;
                        this.nhqkTable[6].nh = data.yHDCB2019076;
                        //其他
                        this.nhqkTable[7].cls = data.yHDCB2019113;
                        this.nhqkTable[7].xslc = data.yHDCB2019114;
                        this.nhqkTable[7].nh = data.yHDCB2019115;

                        this.bczlData[0].value = this.getAreaName(data.yhdcb2019095);
                        this.bczlData[1].value= data.yhdcb2019098;
                        this.bczlData[2].value = data.yHDCB2019079;
                        this.bczlData[3].value= data.yhdcb2019097;

                        this.dlhyData.recid = data.recid;
                        this.dlhyData.floatorder = data.floatorder;

                    }else if (result.data.status == "4001" || result.data.status == "5005" || result.data.status == "1002") {
                        this.dateFlag = true;
                        this.sessionId = "";
                        localStorage.setItem('sessionId', JSON.stringify(this.sessionId));
                        this.$store.commit("outLogin");
                        this.msg = result.data.msg;
                        Toast(this.msg);
                        this.$router.push({
                            path: '/login'
                        });
                    } else if (result.data.status == 1001) {
                        Toast(result.data.msg);
                    }
                }, error => {
                    console.log("getyhdetail request error:" + error);
                });

                // this.ylqkData = JSON.parse(localStorage.getItem('ylqkData'));
                // this.ysqkData = JSON.parse(localStorage.getItem('ysqkData'));
                // this.cwqkTable = JSON.parse(localStorage.getItem('cwqkTable'));
                // this.nhqkTable = JSON.parse(localStorage.getItem('nhqkTable'));
                // console.log(this.ylqkData);
            },
            getAreaName(code) {
                  var QyType = [
                    {
                        "code": "A",
                        "name": "跨省（不相邻省份）"
                    },
                    {
                        "code": "B",
                        "name": "跨省（相邻省份）"
                    },
                    {
                        "code": "C",
                        "name": "一个省内不同地市间"
                    },
                    {
                        "code": "D",
                        "name": "同一地市（直辖市）内"
                    }
                  ];
                  var name;
                  QyType.forEach(item => {
                    if (item.code === code) {
                      name = item.name;
                    }
                  });
                  return name;
              },
            getQyTypeName(code) {// 获取企业登陆注册类型名称
                  var QyType = [
                    {
                      code: "100",
                      name: "内资"
                    },
                    {
                      code: "110",
                      name: "国有"
                    },
                    {
                      code: "120",
                      name: "集体"
                    },
                    {
                      code: "130",
                      name: "股份合作"
                    },
                    {
                      code: "140",
                      name: "联营"
                    },
                    {
                      code: "141",
                      name: "国有联营"
                    },
                    {
                      code: "142",
                      name: "集体联营"
                    },
                    {
                      code: "143",
                      name: "国有与集体联营"
                    },
                    {
                      code: "149",
                      name: "其他联营"
                    },
                    {
                      code: "150",
                      name: "有限责任公司"
                    },
                    {
                      code: "151",
                      name: "国有独资公司"
                    },
                    {
                      code: "159",
                      name: "其他有限责任公司"
                    },
                    {
                      code: "160",
                      name: "股份有限公司"
                    },
                    {
                      code: "170",
                      name: "私营"
                    },
                    {
                      code: "171",
                      name: "私营独资"
                    },
                    {
                      code: "172",
                      name: "私营合伙"
                    },
                    {
                      code: "173",
                      name: "私营有限责任公司"
                    },
                    {
                      code: "174",
                      name: "私营股份有限公司"
                    },
                    {
                      code: "175",
                      name: "个体经营"
                    },
                    {
                      code: "179",
                      name: "其他私有"
                    },
                    {
                      code: "190",
                      name: "其他内资"
                    },
                    {
                      code: "200",
                      name: "港澳台商投资"
                    },
                    {
                      code: "210",
                      name: "与港澳台合资"
                    },
                    {
                      code: "220",
                      name: "与港澳台合作"
                    },
                    {
                      code: "230",
                      name: "港澳台独资"
                    },
                    {
                      code: "240",
                      name: "港澳台投资股份有限公司"
                    },
                    {
                      code: "290",
                      name: "其他港澳台投资"
                    },
                    {
                      code: "300",
                      name: "外商投资"
                    },
                    {
                      code: "310",
                      name: "中外合资"
                    },
                    {
                      code: "320",
                      name: "中外合作"
                    },
                    {
                      code: "330",
                      name: "外资"
                    },
                    {
                      code: "340",
                      name: "外商投资股份有限公司"
                    },
                    {
                      code: "390",
                      name: "其他国外投资"
                    },
                    {
                      code: "900",
                      name: "其他"
                    }
                  ];
                  var name;
                  QyType.forEach(item => {
                    if (item.code === code) {
                      name = item.name;
                    }
                  });
                  return name;
              },
            // 获取业务类型name
                getYwTypeName(code) {
                  var QyType = [
                    {
                        "code": "400",
                        "name": "道路货运"
                    },
                    {
                        "code": "410",
                        "name": "普通货运"
                    },
                    {
                        "code": "421",
                        "name": "货物专用运输（集装箱）"     
                    },
                    {
                        "code": "422",
                        "name": "货物专用运输（冷藏保鲜设备）"
                    },
                    {
                        "code": "423",
                        "name": "货物专用运输（罐式容器）"
                    },
                    {
                        "code": "430",
                        "name": "大型物件运输"
                    },
                    {
                        "code": "440",
                        "name": "危险货物运输"
                    }
                  ];
                  var name;
                  QyType.forEach(item => {
                    if (item.code === code) {
                      name = item.name;
                    }
                  });
                  return name;
              },
        // 获取企业隶属关系name
                getLsgxName(code) {
                  var QyType = [
                    {
                        "code": "1",
                        "name": "集团母公司（核心企业或集团总部）"
                    },
                    {
                        "code": "2",
                        "name": "成员企业"
                    }
                  ];
                  var name;
                  QyType.forEach(item => {
                    if (item.code === code) {
                      name = item.name;
                    }
                  });
                  return name;
              },
        },
        
        
    }

</script>

<style lang="scss" scoped>
    .hy {
        padding-top: 20px;
    }

    table {
        border: 1px solid #0078ce;
        border-collapse: collapse;
        width: 100%;
        height: 100%;
        background-color: rgb(98, 171, 240);
        margin-bottom: 10px;
    }

    .qiantao {
        border: none;
        border-collapse: collapse;
        width: 100%;
        height: 100%;
        background-color: rgb(98, 171, 240);
        margin-bottom: 0;
        border-style: hidden;

    }

    table tr {
        text-align: center;
    }

    table tr td {
        border: 1px solid #0094ff;
    }

    .data {
        background-color: #ffffff;
    }

    button {
        font-size: large;
    }
</style>